\documentclass[12pt]{article}

\begin{document}

$$
   E = K (r - r_0)^2 
$$

\end{document}